package io.github.lounode.extrabotany.data.patchouli.page.extrabotany;

import com.demonwav.mcdev.annotations.Translatable;

import net.minecraft.resources.ResourceLocation;

import io.github.lounode.extrabotany.data.patchouli.page.AbstractPage;

public class SmithingPage extends AbstractPage<SmithingPage> {
	public SmithingPage(String recipe) {
		object.addProperty("recipe", recipe);
	}

	public SmithingPage withTitle(@Translatable String title) {
		object.addProperty("heading", title);
		return this;
	}

	public SmithingPage withText(@Translatable String text) {
		object.addProperty("text", text);
		return this;
	}

	@Override
	public ResourceLocation getType() {
		return ResourceLocation.tryParse("extrabotany:smithing");
	}
}
